package com.haha.mylife;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Menu;
import android.view.MenuItem;

public class Welcome2Activity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_welcome2);
		new Thread(){
			public void run() {
				try {
					this.sleep(2000);
				handler.sendEmptyMessage(0);	
				} catch (Exception e) {
					e.printStackTrace();
				}			
			};
		}.start();
	}
	
	Handler handler=new Handler(){
		@Override
		public void handleMessage(Message msg) {
			startActivity(new Intent(Welcome2Activity.this,LoginActivity.class));
			finish();
		}
	};

	
}
